#define   _CRT_SECURE_NO_WARNINGS 1
void* my_memset(void* ptr, int value, size_t num) {
	assert(ptr);
	void* ret = ptr;
	while (num--) {
		*(char*)ptr = value;  
		ptr = (char*)ptr + 1; 
	}
	return ret;
}